﻿using System;
using DapperExtensions.Mapper;
using ZLWeb.WebApiEntityBase;

namespace ZLWeb.WebApiEntity.CRM
{
    public class KzSettingModel: ResponseResultInfo
    {
        public int Jqm { get; set; }

        public string KName { get; set; }

        public string Sbm { get; set; }

        public short kzzzqb { get; set; }

        public short kzkhsign { get; set; }

        public decimal Yesx { get; set; }

        public string Zzr
        {
            get { return "管理员"; }
        }

        public int kzoprid { get; set; }

        public DateTime Szsj { get; set; }

    }

    public class JltycrmkykztMapper : ClassMapper<KzSettingModel>
    {
        public JltycrmkykztMapper()
        {
            Table("#jltycrmkykzt");
            Map(f => f.Jqm).Column("kzid");
            Map(f => f.KName).Column("kzmc");
            Map(f => f.Sbm).Column("kzsbm");
            Map(f => f.kzkhsign).Column("kzkhsign");
            Map(f => f.kzzzqb).Column("kzzzqb");
            Map(f => f.Yesx).Column("kzyueshangx");
            Map(f => f.kzoprid).Column("kzoprid");
            Map(f => f.Szsj).Column("kzoprtime");
            //Map(f => f.zklbqyday).Column("zklbqyday");
        }
    }
}
